package xyz.labmem.lipx.core

/**
 * @description: do something
 * @author: ltty
 * @date: 2022/6/14 16:35
 */
enum class Status {

    IDLE, CONNECTING, CONNECTED, RE_CONNECT, FAILED;

    fun getCN(): String = when (this) {
        IDLE -> "空闲"
        CONNECTING -> "正在连接"
        CONNECTED -> "已连接"
        RE_CONNECT -> "正在重连"
        FAILED -> "连接失败"
    }
}